package com.xyrl.third.aliyun.config;


import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 阿里云产品帐号配置
 *
 * @author zhongp
 * @version 1.0
 * @className AliYunProperties
 * @company 星纭融链科技服务有限公司
 * @date 2020-01-02 16:30:46
 * @Description
 */
@Data
@Configuration
@Component
@ConfigurationProperties(prefix = "aliyun")
public class AliYunProperties {

    /**
     * 阿里服务商提供的请求keyId
     */
    private String accessKeyId;

    /**
     * 阿里服务商提供的KeySecret
     */
    private String accessKeySecret;

    /**
     * 地域ID
     */
    private String regionId;
    /**
     * 里云短信配置
     */
    @NestedConfigurationProperty
    private MsgProperties msg=new MsgProperties();
    /**
     * 阿里oss配置
     */
    @NestedConfigurationProperty
    private OssProperties oss =new OssProperties();

}
